package com.gxa.saas.portal.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxa.saas.core.entity.dto.luoj.TbAddressDTO;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.util.List;

public interface AddressService extends IService<TbAddressDTO> {

    /*
    * 查询用户所有地址
    * */
    List<TbAddressDTO> queryAllAddress(@Validated @NotNull(message = "用户id不能为空")Integer userId);

    /*
    * 设置
    * */
    Boolean updateAddressStatus(@Validated TbAddressDTO tbAddressDTO);

    /*
    * 查询单个地址
    * */
    TbAddressDTO getAddressById(@Validated @NotNull(message = "用户id不能为空")Integer addressId);
}
